package reduce.fz.com.reduce.util;

import reduce.fz.com.reduce.bean.User;
import reduce.fz.com.reduce.util.base.PreferenceUtil;

/**
 * Created by qingshengzheng on 15/8/23.
 */
public class UserUtil {

    public static User getUser() {
        User user = new User();
        String username = PreferenceUtil.getStringPreference("username");
        String password = PreferenceUtil.getStringPreference("password");
        String mobile = PreferenceUtil.getStringPreference("mobile");
        Long uid = PreferenceUtil.getLongPreferences("uid", 0);
        user.uid = uid;
        user.username = username;
        user.mobile = mobile;
        user.password = password;
        return user;
    }
}
